﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommunergyLogicTests
{
    public class SampleLiveGridData
    {
        //last digits trimmed from amount
        public static string SampleLiveCarbonIntensity = @"
<electricityCO2Item uri='http://www.realtimecarbon.org/electricity/services/co2profile/5minute/item'>
  <uid>4FD690C2BE6A</uid>
  <amount>0.603226192045817</amount>
  <units>kgCO2 per kWh</units>
  <startDateGMT>2010-01-11T22:20:00+00:00</startDateGMT>
  <endDateGMT>2010-01-11T22:25:00+00:00</endDateGMT>
  <hhRollingMean>
    <value>0.588081347447253</value>
    <units>kgCO2 per kWh</units>
    <startDateGMT>2010-01-04T22:00:00+00:00</startDateGMT>
    <endDateGMT>2010-01-11T22:00:00+00:00</endDateGMT>
    <hhSampleSize>336</hhSampleSize>
  </hhRollingMean>
  <officialStandard>
    <value>0.527</value>
    <units>kgCO2 per kWh</units>
  </officialStandard> 
</electricityCO2Item>";
           
        public static string SampleLiveFuelMix =@"<?xml version='1.0'?>
<GENERATION_BY_FUEL_TYPE_TABLE>
  <INST AT='2010-01-11 22:50:00' TOTAL='44509'>
    <FUEL TYPE='CCGT' IC='N' VAL='15816' PCT='35.5'></FUEL>
    <FUEL TYPE='OCGT' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='OIL' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='COAL' IC='N' VAL='20583' PCT='46.2'></FUEL>
    <FUEL TYPE='NUCLEAR' IC='N' VAL='7411' PCT='16.7'></FUEL>
    <FUEL TYPE='WIND' IC='N' VAL='604' PCT='1.4'></FUEL>
    <FUEL TYPE='PS' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='NPSHYD' IC='N' VAL='95' PCT='0.2'></FUEL>
    <FUEL TYPE='OTHER' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='INTFR' IC='Y' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='INTIRL' IC='Y' VAL='0' PCT='0.0'></FUEL>
  </INST>
  <HH SD='2010-01-11' SP='45' AT='22:00-22:30' TOTAL='46623'>
    <FUEL TYPE='CCGT' IC='N' VAL='17175' PCT='36.8'></FUEL>
    <FUEL TYPE='OCGT' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='OIL' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='COAL' IC='N' VAL='21329' PCT='45.7'></FUEL>
    <FUEL TYPE='NUCLEAR' IC='N' VAL='7412' PCT='15.9'></FUEL>
    <FUEL TYPE='WIND' IC='N' VAL='607' PCT='1.3'></FUEL>
    <FUEL TYPE='PS' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='NPSHYD' IC='N' VAL='100' PCT='0.2'></FUEL>
    <FUEL TYPE='OTHER' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='INTFR' IC='Y' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='INTIRL' IC='Y' VAL='0' PCT='0.0'></FUEL>
  </HH>
  <LAST24H FROM_SD='2010-01-10' FROM_SP='46' AT='22:30-22:30' TOTAL='1195914'>
    <FUEL TYPE='CCGT' IC='N' VAL='456809' PCT='38.2'></FUEL>
    <FUEL TYPE='OCGT' IC='N' VAL='265' PCT='0.0'></FUEL>
    <FUEL TYPE='OIL' IC='N' VAL='2555' PCT='0.2'></FUEL>
    <FUEL TYPE='COAL' IC='N' VAL='517193' PCT='43.2'></FUEL>
    <FUEL TYPE='NUCLEAR' IC='N' VAL='180481' PCT='15.1'></FUEL>
    <FUEL TYPE='WIND' IC='N' VAL='19278' PCT='1.6'></FUEL>
    <FUEL TYPE='PS' IC='N' VAL='13399' PCT='1.1'></FUEL>
    <FUEL TYPE='NPSHYD' IC='N' VAL='5116' PCT='0.4'></FUEL>
    <FUEL TYPE='OTHER' IC='N' VAL='0' PCT='0.0'></FUEL>
    <FUEL TYPE='INTFR' IC='Y' VAL='816' PCT='0.1'></FUEL>
    <FUEL TYPE='INTIRL' IC='Y' VAL='0' PCT='0.0'></FUEL>
  </LAST24H>
  <LAST_UPDATED AT='2010-01-11 22:50:00'></LAST_UPDATED>
</GENERATION_BY_FUEL_TYPE_TABLE>
";

    }
}
